<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->string('truename', 32)->nullable()->add();
            $table->string('porfile', 255)->nullable();
            $table->string('city',  32)->nullable();
            $table->string('company', 32)->nullable();
            $table->string('weiboname', 32)->nullable();
            $table->string('weibourl', 255)->nullable();
            $table->string('weblink', 255)->nullable();
            $table->string('weixinqrcode', 255)->nullable();
            $table->string('alipayqrcode', 255)->nullable();
            $table->string('Introduction', 64)->nullable();
            $table->boolean('verified')->default(0);
            $table->boolean('is_ban')->default(0);
            $table->integer('ban_time')->default(0);
            $table->rememberToken();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
